<template>
  <div class="addvit" v-show="isaddcg">
      <div>
          <div>商品已成功加入购物车</div>
          <div class="en">
              <div @click="changeisadd">继续购物</div>
              <div @click="changeisadd">
                  <router-link to="/gouwuche">去购物车</router-link>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    name:"addvit",
    data() {
        return {
            isaddcg : true
        }
    },
    methods: {
        changeisadd(){
            this.busvue.$emit("isaddcg",false)
        }
    },
}
</script>

<style lang="less" scoped>

.addvit{
   >div{
       position: relative;
       top: 50%;
       font-size: .3rem;
       width: 6rem;
       height: 2.12rem;
       background-color: #fff;
       margin: -1.06rem auto 0;
       >div:nth-child(1){
           height: 1.1rem;
           text-align: center;
           line-height: 1.1rem;
           color: rgb(180, 180, 180);
       }
       .en{
           display: flex;
           text-align: center;
           >div{
               width: 50%;
               height: .96rem;
               line-height: .96rem;
               border: 1px solid rgb(233, 233, 233);
           }
           a{
               color: rgb(1, 196, 59);
           }
       }
   }
}
</style>